package com.sais.manage.boot.platform.dto;

import com.sais.manage.boot.platform.entity.Org;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * 宿舍管理系统-组织机构 添加修改 DTO
 *
 * @author zhang
 * @date 2019/11/30
 **/
@Data
@NoArgsConstructor
public class OrgSaveDTO {

    private String ukId;
    private String parentId;
    private String code;
    private String name;
    private Integer status;
    private Integer sort;

    private OrgInfoDTO orgInfo;
    private List<String> userIds;

    public Org convert() {
        Org org = new Org();
        BeanUtils.copyProperties(this, org);
        return org;
    }
}
